package org.yang.order.food.entity;

import lombok.Builder;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;
/**
 * 订单
 * @author shichenyang
 * @email gyv12345@163.com
 * @date 2018/12/03
 */
@Data
@Builder
public class Order implements Serializable {
        /**
         * 
         */
        private Integer id;
        /**
         * 
         */
        private Integer userId;
        /**
         * 下单时间
         */
        @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
        private Date orderTime;
        /**
         * 支付时间
         */
        @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
        private Date payTime;
        /**
         * 价格
         */
        private BigDecimal price;
        /**
         * 优惠价格
         */
        private BigDecimal salePrice;
        /**
         * 是否评价
         */
        private Integer isEvel;
        /**
         * 评分
         */
        private Integer grade;
        /**
         * 订单状态
         */
        private Integer state;
}
